﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ChallengePuzzle.Lib
{
    /// <summary>
    /// 素数类
    /// </summary>
    public class Prime
    {
        /// <summary>
        /// 是否素数
        /// </summary>
        /// <param name="Number"></param>
        /// <returns></returns>
        public bool IsPrime(int Number)
        {
            
            return PrimeCache.IsPrime(Number);

        }

        public bool IsPrime1(int Number)
        {


            bool Result = PrimeCache.IsPrimeByCaculate(Number);
            
      

            return Result;
        }



    }
}
